package com.msda.pojo.entity.order;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cancellation")
public class Cancellation {

//    create table cancellation (
//            id varchar(64) comment '取消预订申请ID',
//    reservation_id varchar(64) comment '取消申请对应的预订单ID',
//    customer_id varchar(64) comment '发起取消预定申请的客户ID',
//    cancellation_reason text comment '客户取消预订的原因',
//    refund_amount double not null default 0.0 comment '取消返还的金额',
//    refund_percentage double not null default 0.0 comment '取消返还金额的倍率',
//    status varchar(10) not null default 'requested'
//    comment '订单状态 -> 'requested' | 'approved' | 'rejected'',
//    processed_time bigint not null comment '处理申请的具体时间',
//    created_time bigint not null comment '取消预定申请创建的具体时间',
//
//    primary key (id)
//)ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4;

    @TableId
    private String id;

    private String reservationId;
    private String customerId;
    private String cancellationReason;
    private double refundAmount;
    private double refundPercentage;
    private String status;
    private Long processedTime;
    private Long createdTime;

}
